package com.coe.demo.dao.impl;

import javax.annotation.Resource;

import org.hibernate.SessionFactory;
import org.springframework.orm.hibernate3.HibernateTemplate;

public class BaseDAO {

	
	    @Resource 
	   private SessionFactory  sessionFactory;
	    
	    
	    public HibernateTemplate getHibernateTemplate()
	    {
	    	
	    	return new HibernateTemplate(sessionFactory);
	    }
	  
}
